class Check_workFormModel extends Backbone.Model
    url: '/mytable/getModel?s=table.creators.Check_workTable'
    initialize: (options) =>
        @fetch()
   
#--------------------------------------------------controler
class Check_worksApp
    search: =>
        myapp.mainRegion.close() 
        mymodel = new Check_workFormModel
        @layout = new ModelMainLayout(model: mymodel)
        myapp.mainRegion.show(@layout)

            

#--------------------------------------------------router
class Check_worksAppRouter extends Backbone.Marionette.AppRouter
    appRoutes: 
        "check_works": "search"

                
myapp.addInitializer -> 
    myapp.Check_works_app = new Check_worksApp()
    myapp.Check_works_app.router = new Check_worksAppRouter controller: myapp.Check_works_app

myapp.vent.trigger("routing:started")
